<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>广东省网上办事大厅 - 珠海分厅 - 网上办事</title>
		<meta content="text/html; charset=UTF-8" http-equiv=Content-Type>
		<meta name=description content=广东省网上办事大厅-珠海分厅>
		<meta name=keywords content="珠海，投资申请，项目审批，商机，珠海人民政府，政民互动,效能监察,投资审批,网上办事 ">
		<link rel=stylesheet type=text/css href="../static/css/common.css">
		<link rel=stylesheet type=text/css href="../static/css/wsbs.css">
		<link href="../static/css/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="../static/css/ui.jqgrid.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="../static/css/ui.jqgrid.modify.jypt.css" rel="stylesheet" type="text/css" media="screen" />
		<script src="../js/jquery-1.9.0.min.js" type="text/javascript"></script>
		<script src="../js/commonInChildPage.js" type=text/javascript></script>
		<script src="../js/jquery.jqGrid.min.js" type="text/javascript"></script>
		<script src="../js/i18n/grid.locale-cn.js" type="text/javascript"></script>
		<style type="text/css">
			#left {width:180px; float:left; background-color:#e6f1fd;}
		</style>
	</head>
	<body>
		<jsp:include page="../include/head.jsp" />
		<div class=position>
			<strong>
				<table id=wypy border=0 cellSpacing=0 cellPadding=0 width=310>
					<tbody>
						<tr>
							<td class=xinxin_font height=20 vAlign=bottom width=170 align=right>
								本窗口服务星级评定：
							</td>
							<td onmouseover=rate(this,event) vAlign=center width=140 align=left>
								<img title=很烂 src="../images/star_2.png" width=20>
								<img title=一般 src="../images/star_2.png" width=20>
								<img title=还好 src="../images/star_2.png" width=20>
								<img title=较好 src="../images/star_2.png" width=20>
								<img title=很好 src="../images/star_2.png" width=20>
							</td>
						</tr>
					</tbody>
				</table>您现在的位置：</strong>
				<a href="http://wsbs.zhzw.gov.cn/">首 页</a> &gt;
				<a href="http://wsbs.zhzw.gov.cn/wsbs/">网上办事</a> &gt;
				<a href="../index.do">公共资源交易大厅</a>&gt;
				<a href="tbr_index.do">我是投标人</a>&gt;
				公开招标
		</div>
		<div class=cl></div>
		<div class="main t10 clearfix">
			<!-- left -->
			<div class="main_l" style="height: 440px; overflow-y: auto; overflow-x: hidden;">
				<div class="left_nav">
					<div class="left_nav_tit">
						<a href="tbr_index.do">我是投标人</a>
					</div>
					<div class="bar_list">
						<h5>
							<span>业务办理</span>
						</h5>
						<ul id="ChildMenu1">
							<li class="current">
								<a href="tbr_gkzb.do" class="nobj">公开招标</a>
							</li>
							<li>
								<a href="tbr_ybmbd.do" class="nobj">已报名标段</a>
							</li>
						</ul>
					</div>

					<div class="bar_list">
						<h5>
							<span>企业简历</span>
						</h5>
						<ul>
							<li>
								<a href="tbr_base_info.do">基本信息</a>
							</li>
							<li>
								<a href="tbr_ent_qual.do">企业资质</a>
							</li>
							<li>
								<a href="#">企业业绩</a>
							</li>
							<li>
								<a href="#">企业人员</a>
							</li>
						</ul>
					</div>
				</div>
				<div class="clear"></div>

			</div>
			<!-- left end -->
			<!-- right -->
			 <div class="main_r">
			   <div class="right_box"> 
				  <div class="rightbox_tit">公开招标</div>
					<div class="d_search">
						项目编号或名称：<input type="text" size="40" id="prjOrPkgName"/>&nbsp;<input type="submit" name="Submit" id="searchButton" value="搜 索" class="input_button_small"/>
					&nbsp;</div>
			     </div>
		</div>
	
			<div class="tbrmain" style="float:right;padding-left:10px">
				<div>
					<table id="projectlist"></table>
					<div id="pprojectlist"></div>
				</div>
			</div>
		</div>
		<div class="cb"></div>
		<jsp:include page="../include/bottom.jsp" />
		<script type="text/javascript">
		
		function formatEnroll(cellvalue, options, rowObject){
			if(cellvalue == "true"){
				return "<font color=blue>已报名</font>";
			}
			return "<font color=blue>未报名</font>";
		};
		
		function formatOpear(cellvalue, options, rowObject){
			if(rowObject.enrollStatus == "true"){
				return "我要报名";
			}
			return "<a href='#'><font color=blue>我要报名</font></a>";
		};
		
		jQuery("#projectlist").jqGrid({
			datatype: "json",
			url:"load_tbr_gkzb_data.do",
			jsonReader : {  
		        root:"result",  
		        page: "currentPage",  
		        total: "pageCount",  
		        records: "totalCount"  
		    },  
			height: 'auto',
			width: 908,
			rowNum: 5,
			rowList: [5,10,15,20,25,30],
		   	colNames:['标段名称','招标类别', '报名截止时间', '报名状态','交易操作','项目名称'],
		   	colModel:[
		   		{name:'bidNoticeName',index:'bidNoticeName', width:230,sortable:false,align:"center"},
		   		{name:'packageType',index:'packageType', width:60,sortable:false,align:"center" },
		   		{name:'enrollEndTime',index:'enrollEndTime', width:60,sortable:false,align:"center"},
		   		{name:'enrollStatus',index:'enrollStatus', width:60,sortable:false, align:"center",formatter:formatEnroll},
		   		{name:'operation',index:'operation', width:60,sortable:false, align:"center",formatter:formatOpear},
		   		{name:'projectName',index:'projectName', width:60,sortable:false, align:"center"}
		   	],
		   	pager: "#pprojectlist",
		   	viewrecords: true,
		   	sortname: 'id',
		   	grouping:true,
		   	groupingView : {
		   		groupField : ['projectName'],
				groupColumnShow : [false],
				groupText : ['<font color=blue>项目名称：{0}</font>']
		   	}
		});
		
		$(document).ready(function () {
	      $("#searchButton").click(function () {
	            jQuery("#projectlist").jqGrid()
	                .setGridParam({
	                    postData: { searchText: function () { return encodeURI($("#prjOrPkgName").val()); } } 
	                    }).trigger("reloadGrid");
	        });
	    });
		</script>
	</body>
</html>